package com.smart_environmental_protection.service.ServiceImp;

import com.smart_environmental_protection.dao.ContentDao;
import com.smart_environmental_protection.dao.NoticeDao;
import com.smart_environmental_protection.pojo.Notice;
import com.smart_environmental_protection.service.NoticeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class NoticeServiceImp implements NoticeService {
    @Resource
    private NoticeDao noticeDao;

    @Override
    public List<Notice> NoticeList() {
        return noticeDao.NoticeList();
    }

    @Override
    public Notice NoticeDetail(int id) {
        return noticeDao.NoticeDetail(id);
    }
}
